package com.ysy.tz.mfg.entity;

import com.ysy.tz.core.engine.KeyValuePair;

public class SmartEquipmentEntity implements KeyValuePair {
    private String smartId;
    private String smartCode;
    private String smartName;
    private String smartTypeCode;
    private String smartTypeName;
    private Integer enterpriseId;

    public String getKeyPair() {
        return this.smartCode;
    }

    public String getValuePair() {
        return this.smartName;
    }

    public SmartEquipmentEntity() {
    }

    public String getSmartId() {
        return this.smartId;
    }

    public String getSmartCode() {
        return this.smartCode;
    }

    public String getSmartName() {
        return this.smartName;
    }

    public String getSmartTypeCode() {
        return this.smartTypeCode;
    }

    public String getSmartTypeName() {
        return this.smartTypeName;
    }

    public Integer getEnterpriseId() {
        return this.enterpriseId;
    }

    public void setSmartId(String smartId) {
        this.smartId = smartId;
    }

    public void setSmartCode(String smartCode) {
        this.smartCode = smartCode;
    }

    public void setSmartName(String smartName) {
        this.smartName = smartName;
    }

    public void setSmartTypeCode(String smartTypeCode) {
        this.smartTypeCode = smartTypeCode;
    }

    public void setSmartTypeName(String smartTypeName) {
        this.smartTypeName = smartTypeName;
    }

    public void setEnterpriseId(Integer enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof SmartEquipmentEntity)) {
            return false;
        } else {
            SmartEquipmentEntity other = (SmartEquipmentEntity)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$enterpriseId = this.getEnterpriseId();
                Object other$enterpriseId = other.getEnterpriseId();
                if (this$enterpriseId == null) {
                    if (other$enterpriseId != null) {
                        return false;
                    }
                } else if (!this$enterpriseId.equals(other$enterpriseId)) {
                    return false;
                }

                Object this$smartId = this.getSmartId();
                Object other$smartId = other.getSmartId();
                if (this$smartId == null) {
                    if (other$smartId != null) {
                        return false;
                    }
                } else if (!this$smartId.equals(other$smartId)) {
                    return false;
                }

                Object this$smartCode = this.getSmartCode();
                Object other$smartCode = other.getSmartCode();
                if (this$smartCode == null) {
                    if (other$smartCode != null) {
                        return false;
                    }
                } else if (!this$smartCode.equals(other$smartCode)) {
                    return false;
                }

                label62: {
                    Object this$smartName = this.getSmartName();
                    Object other$smartName = other.getSmartName();
                    if (this$smartName == null) {
                        if (other$smartName == null) {
                            break label62;
                        }
                    } else if (this$smartName.equals(other$smartName)) {
                        break label62;
                    }

                    return false;
                }

                label55: {
                    Object this$smartTypeCode = this.getSmartTypeCode();
                    Object other$smartTypeCode = other.getSmartTypeCode();
                    if (this$smartTypeCode == null) {
                        if (other$smartTypeCode == null) {
                            break label55;
                        }
                    } else if (this$smartTypeCode.equals(other$smartTypeCode)) {
                        break label55;
                    }

                    return false;
                }

                Object this$smartTypeName = this.getSmartTypeName();
                Object other$smartTypeName = other.getSmartTypeName();
                if (this$smartTypeName == null) {
                    if (other$smartTypeName != null) {
                        return false;
                    }
                } else if (!this$smartTypeName.equals(other$smartTypeName)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof SmartEquipmentEntity;
    }

    public int hashCode() {
        int result = 1;
        Object $enterpriseId = this.getEnterpriseId();
        result = result * 59 + ($enterpriseId == null ? 43 : $enterpriseId.hashCode());
        Object $smartId = this.getSmartId();
        result = result * 59 + ($smartId == null ? 43 : $smartId.hashCode());
        Object $smartCode = this.getSmartCode();
        result = result * 59 + ($smartCode == null ? 43 : $smartCode.hashCode());
        Object $smartName = this.getSmartName();
        result = result * 59 + ($smartName == null ? 43 : $smartName.hashCode());
        Object $smartTypeCode = this.getSmartTypeCode();
        result = result * 59 + ($smartTypeCode == null ? 43 : $smartTypeCode.hashCode());
        Object $smartTypeName = this.getSmartTypeName();
        result = result * 59 + ($smartTypeName == null ? 43 : $smartTypeName.hashCode());
        return result;
    }

    public String toString() {
        return "SmartEquipmentEntity(smartId=" + this.getSmartId() + ", smartCode=" + this.getSmartCode() + ", smartName=" + this.getSmartName() + ", smartTypeCode=" + this.getSmartTypeCode() + ", smartTypeName=" + this.getSmartTypeName() + ", enterpriseId=" + this.getEnterpriseId() + ")";
    }
}
